package com.housediyadmin.command.treeCommand
{
	import com.housediyadmin.events.treeEvents.GetAreaTreeEvent;
	import com.housediyadmin.model.AreaTreeModel;
	
	import org.robotlegs.mvcs.Command;
	
	/**
	 * 
	 * @author yanghanbing
	 * 2010/11/29
	 */	
	public class UpdateAreaTreeCommand extends Command
	{
		[Inject]
		public var event:GetAreaTreeEvent;
		
		[Inject]
		public var model:AreaTreeModel;
		
		override public function execute():void
		{
			model.updateBuildingTreeXML(event.areaTreeXML);
		}
	}
}